﻿$(document).ready(function () {
	$("#btCapNhat").click(function (e) {
		var soluong = $("#soluong").val();
		var gia = $("#gia").html();
		$("#thanhtien").html(soluong * gia + " VND");
		$("#success").hide();
		return false;
	});
	$("#themgiohang").click(function (e) {
		$("#tensach").html($("#namebook").html());
		$("#gia").html($("#price").html());

		$("#thanhtien").html($("#price").html() + "VND");
		$("#success").hide();
		$('#basic-modal-content').modal();
		return false;
	});
	$("#btThemVaoGioHang").click(function (e) {
	    var count = $(".cartitemcount").val();
	    count += 1;
	    $(".cartitemcount").html(count);
		$("#success").show();
		return false;
	});
	$("#btbinhluan").click(function (e) {
	    $("#status-comment").show();
	 
	    $("#list-comment").prepend("<tr style='height: 40px; background: #E6E6E6;'><td style='border-bottom: 1px solid #888;'>Guest</td><td style='border-bottom: 1px solid #888;'>" + $("#text-mess").val() + "</td></tr>");
	    $("#text-mess").val("");
	    return false;
	});


});